import React from 'react'
import { Toast, NavBar } from 'react-vant';
import { useNavigate } from 'react-router-dom';
export default function Navbar(props: { title: string, path: string }) {
    const navigate = useNavigate();
    const handleClick = () => {
        // console.log(props.path);
        navigate('/mine');
    };
    return (
        <div>
            <NavBar
                title={props.title}
                onClickLeft={() => {
                    handleClick()
                }}
            />
        </div>
    )
}
